home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4771 < prev    next >
Encoding:
Text File  |  1996-08-06  |  919 b   |  33 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.shlink.de!wiloyee!herbert
  3. From: herbert@wiloyee.shnet.org (Martin Dietze)
  4. Subject: Re: Life is strange, especially with Watcom
  5. X-Newsreader: TIN [version 1.2 PL2+color]
  6. Organization: Studentenhochhaus Wedel Deutschland
  7. Message-ID: <DM1J1K.Lx8@wiloyee.shnet.org>
  8. References: <DLxtH3.AMA.0.-s@cs.vu.nl>
  9. Date: Wed, 31 Jan 1996 10:12:55 GMT
  10.  
  11. Andre Versteeg (alverste@cs.vu.nl) wrote:
  12.  
  13. : int v;
  14. : v = Setup();
  15.  
  16. : All compiles very well, until I changed the code to:
  17.  
  18. : int v = Setup(); and changed the filename to .CPP
  19.  
  20. : Now the compiler screams the following:
  21.  
  22. : * Undefined reference: int near Setup(void)
  23.  
  24. Ever considered leaving the code and only changing the file's extension?
  25. What does the compiler say then?
  26.  
  27. Could it be it's a "C-only" header file? Check if there's 
  28. something like "#ifdef __cplusplus" at top of the file, look up your
  29. Watcom headers to get an idea.
  30.  
  31. herbert 
  32.  
  33.